include ../Makefile.drivers_common

DEBUG ?= 0

USEMODULE += ina3221
USEMODULE += fmt
USEMODULE += xtimer

INA3221_ADDR    ?= INA3221_ADDR_00
INA3221_PIN_WRN ?= GPIO_UNDEF
INA3221_PIN_CRT ?= GPIO_UNDEF
INA3221_PIN_PV  ?= GPIO_UNDEF
INA3221_PIN_TC  ?= GPIO_UNDEF

CFLAGS += -DINA3221_PARAM_ADDR=$(INA3221_ADDR)
CFLAGS += -DINA3221_PARAM_PIN_WRN=$(INA3221_PIN_WRN)
CFLAGS += -DINA3221_PARAM_PIN_CRT=$(INA3221_PIN_CRT)
CFLAGS += -DINA3221_PARAM_PIN_PV=$(INA3221_PIN_PV)
CFLAGS += -DINA3221_PARAM_PIN_TC=$(INA3221_PIN_TC)

include $(RIOTBASE)/Makefile.include
